package com.cyh.mywebsocket;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.cyh.mywebsocket.nvwebsocket.Test3Activity;
import com.cyh.mywebsocket.oksocket.Test2Activity;
import com.cyh.mywebsocket.zhangke.Test1Activity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn_websoket_1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, Test1Activity.class));
            }
        });
        findViewById(R.id.btn_websoket_2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, Test2Activity.class));
            }
        });
        findViewById(R.id.btn_websoket_3).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, Test3Activity.class));
            }
        });
    }
}